package day214;

public class IfDemo {
    public static void main(String[] args) {
        //满500打8折
        /*
        double price = 700;
        if(price>=500){
            price *= 0.8;
        }
        System.out.println(price);
        int score = 90;
        if(score>=0&&score<=100){
            System.out.println("成绩合格");
        }

        double score=90;
        if(score>=0&&score<=100){
            System.out.println("成绩合格");
        }else{
            System.out.println("成绩不合格");
        }

         */
        double money=600;
        if(money>=500){
            money*=0.8;
        }else{
            money*=0.9;
        }
        System.out.println(money);

    }
}
